package com.hp.web.controller.teach;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import com.hp.framework.web.base.BaseController;
import com.hp.teach.service.IHomePageService;

@Controller
@RequestMapping("/home")
public class HomePageController extends BaseController{

	
	@Autowired
	private IHomePageService homePageService;

	
	/** 
	 * @description 查询教学信息
	 * @param params
	 * @return
	 */
	@GetMapping("/getTeachCountInfo")
	public String getTeachCountInfo( ModelMap  model) {
		List<Map<String,Object>>  countInfo = homePageService.getTeachCountInfo();
		model.addAttribute("countInfo",countInfo);
		return "main";
	}
	
} 
